/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-06
 * Time: 22:27
 */
interface A {
    void test1();
    static void test2() {
        System.out.println("静态方法()");
    }
    default void test3() {
        System.out.println("default方法()");
    }
}

class TestDemo implements A{
    @Override
    public void test1() {
        System.out.println("重写方法()");
    }

}

public class Test {
    public static void main(String[] args) {
        TestDemo testDemo = new TestDemo();
        testDemo.test1();
        testDemo.test3();
        A.test2();
    }
}
